package it.unibo.convoycruisecontrol.chiefboatsubsystem.presentation.swing;

import java.awt.Dimension;
import java.awt.FlowLayout;

import javax.swing.JFrame;

public class ChiefOnlyFrame extends JFrame 
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public ChiefOnlyFrame(ControlPanelView controlPanelView, FlagDisplayView flagDisplayView)
	{
		setTitle("Convoy Cruise Control");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setLayout(new FlowLayout());
		setPreferredSize(new Dimension(800, 200));
		add(controlPanelView);
		add(flagDisplayView);
		pack();
		setVisible(true);
	}

}
